//
//  HomeButtonsCollectionViewCell.h
//  YYZB
//
//  Created by 顾悦 on 16/3/23.
//
//

#import <UIKit/UIKit.h>

@interface HomeButton : NSObject

- (instancetype)initWithDictionary:(NSDictionary *)d;
- (instancetype)initWithIcon:(NSString *)icon name:(NSString *)name selector:(SEL)selector;

@property (nonatomic, copy) NSString *icon;
@property (nonatomic, copy) NSString *name;
@property (nonatomic) SEL selector;

@end

@protocol HomeButtonsDelegate <NSObject>

- (void)homeButtonTapped:(HomeButton *)button;

@end

@interface HomeButtonsCollectionViewCell : UICollectionViewCell

@property (strong, nonatomic) NSArray<HomeButton *> *items;

@property (weak, nonatomic) id<HomeButtonsDelegate> delegate;

@end
